package info.motteke.kurumi;

import info.motteke.mixivoice4j.VoiceCreateListener;
import info.motteke.mixivoice4j.Voice;

import java.util.Collection;

public class VoiceAddListener implements VoiceCreateListener {

    private final VoiceTable table;

    public VoiceAddListener(VoiceTable table) {
        this.table = table;
    }

    @Override
    public void onVoiceCreated(Collection<Voice> voices) {
        table.addVoice(voices);
    }
}
